package com.wechatapp.mengyao.poetry.service;

import com.wechatapp.mengyao.poetry.dto.LoginRequestDTO;
import com.wechatapp.mengyao.poetry.vo.LoginResponse;
import com.wechatapp.mengyao.poetry.dto.UserAvatarDTO;
import com.wechatapp.mengyao.poetry.dto.UserInfoDTO;
import com.wechatapp.mengyao.poetry.entity.UserInfo;

/**
 * @author yanghuaxu
 * @date 2025/5/20 17:29
 */
public interface UserInfoService {

    LoginResponse login(LoginRequestDTO login);

    UserInfo getUserByPlatformAndId(String platform, String openId);

    UserInfo createUser(UserInfoDTO userInfo);

    UserInfo updateUser(UserInfoDTO userInfoDTO);

    UserInfo updateUserAvatar(UserAvatarDTO avatarDTO);

    UserInfo getUserInfoById(String id);

    UserInfo parseToken(String token, String platform);

}
